home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Present…nuary (Partner) - Disc 2
/
The Apple Reference and Presentations Library (Disc 2)(January 1994).iso
/
Graphisoft
/
US English
/
ArchiCAD
/
ArchiCAD 4.5-68K
/
ArchiCAD Library
/
08 Doors & Windows
/
Window Macros
/
qrtr_frame
< prev
next >
Wrap
Text File
|
1994-04-08
|
2KB
|
76 lines
!qrtr_frame /rewritten 2/22/94/***VL/
! a, b, frame width, frame thickness,
! glass material, resolution
r=f !***resolution
s=90/r !***resolution segment angle
g=1.5*c !***frame#2 thickn. = 0.5*frame#1 thickn.
k=a-c
p=a-g
l=b-c
q=b-g
x=k-sqr(k*k-c*c) !***frame#1 internal edge distance(-Δx)
m=k-x
y=p-sqr(p*p-g*g) !***frame#2 internal edge distance(-Δx)
n=p-y
z=l-sqr(l*l-c*c) !***frame#1 internal edge distance(-Δy)
o=l-z
t=q-sqr(q*q-g*g) !***frame#2 internal edge distance(-Δy)
i=q-t
for v=r to 0 step-1
w=v*s
Put -a*cos(w), b*sin(w), 13
next v
Put -c,o,15
for v= r-1 to 1 step -1
w=v*s
Put -k*cos(w), l*sin(w), 13+64
next v
Put -m,c,15
prism_ 7+nsp/3,d, !*** external frame
get (nsp/2),
-a,0,15,
0,0,15,
0,b,-1,
-c,o,15,
use (nsp),
-m,c,15,
-c,c,15,
-c,o,-1
Put -g,i,15
for v= r-1 to 1 step -1
w=v*s
Put -p*cos(w), q*sin(w), 13+64
next v
Put -n,g,15
addz d/4
prism_ 7+nsp/3,d/2, !*** internal frame
get (nsp/2),
-m,c,15,
-c,c,15,
-c,o,-1,
-g,i,15,
get (nsp),
-p,g,15,
-g,g,15,
-g,i,-1
body 3
if e<0.1 then 10 !***glass
Put -g,i,15
for v= r-1 to 1 step -1
w=v*s
Put -p*cos(w), q*sin(w), 13+64
next v
Put -n,g,15
material e
addz d/4-0.002
prism_ 3+nsp/3,0.004,
get (nsp),
-p,g,13,
-g,g,13,
-g,i,-1
body 3
10:
end